<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"  isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改操作员</title>
<style type="text/css">
.rolelist {
	float: left;
	overflow: hidden;
	height: 190px;
}

.rolelist_right {
	float: left;
	overflow: hidden;
	height: 190px;
}

.center {
	margin: 20px, 20px, 20px, 20px;
	float: left;
	overflow: hidden;
	height: 190px;
	width: 130px;
	text-align: center;
}

.role {
	margin-bottom: 10px;
	margin-top: 10px;
	overflow: hidden;
}
</style>
<script type="text/javascript">
	function onsubmits() {
		var role_select = document
				.getElementById("appUserCreate_appuser_roles_sel");
		var group_select = document
				.getElementById("appUserCreate_appuser_group_sel");

		for ( var i = 0; i < role_select.length; i++) {
			role_select.options[i].selected = true;
		}
		for ( var i = 0; i < group_select.length; i++) {
			group_select.options[i].selected = true;
		}
		return true;
	}
</script>
</head>
<body>
<div class="youarehere">权限管理 &gt;<span>管理操作员</span>&gt; <span>修改操作员</span></div>
	<chtml:command command="appuser" title="修改"
		exclude="createTime,lastLogin,lastUpdate" onSubmit="onsubmits()"
		action="/acm/appuser/onmodify" column="2">
		<chtml:property index="-1" label="所属角色">
			<div class="role">
				<div class="rolelist">
					<SELECT tabindex="1" id="appUserCreate_appuser_roles"
						NAME="appUserCreate_appuser_roles" multiple="multiple" SIZE=12
						style="width: 130px;">
						<c:forEach items="${requestScope.rolelistdiff}" var="role">
							<option value="${role.id }">${role.name }</option>
						</c:forEach>
					</SELECT>
				</div>
				<div class="center">
					<br> <br> <a href="#"
						onclick="javascript:helper.fun.moveSelectItem('appUserCreate_appuser_roles','appUserCreate_appuser_roles_sel');">添加</a><br>
					<br> <a href="#"
						onclick="javascript:helper.fun.moveSelectItem('appUserCreate_appuser_roles_sel','appUserCreate_appuser_roles');">移除</a>
				</div>

				<div class="rolelist_right">
					<SELECT tabindex="1" id="appUserCreate_appuser_roles_sel"
						NAME="roles" multiple="multiple" SIZE=12 style="width: 130px;">
						<c:forEach items="${requestScope.rolelist}" var="role">
							<option value="${role.id }">${role.name }</option>
						</c:forEach>
					</SELECT>
				</div>
			</div>
		</chtml:property>
		<chtml:property index="-1" label="所属分组">
			<div class="role">
				<div class="rolelist">
					<SELECT tabindex="1" id="appUserCreate_appuser_group"
						NAME="appUserCreate_appuser_group" multiple="multiple" SIZE=12
						style="width: 130px;">
						<c:forEach items="${requestScope.grouplistdiff}" var="group">
							<option value="${group.id }">${group.name }</option>
						</c:forEach>
					</SELECT>
				</div>
				<div class="center">
					<br> <br> <a href="#"
						onclick="javascript:helper.fun.moveSelectItem('appUserCreate_appuser_group','appUserCreate_appuser_group_sel');">添加</a><br>
					<br> <a href="#"
						onclick="javascript:helper.fun.moveSelectItem('appUserCreate_appuser_group_sel','appUserCreate_appuser_group');">移除</a>
				</div>

				<div class="rolelist_right">
					<SELECT tabindex="1" id="appUserCreate_appuser_group_sel"
						NAME="groups" multiple="multiple" SIZE=12 style="width: 130px;">
						<c:forEach items="${requestScope.grouplist}" var="group">
							<option value="${group.id }">${group.name }</option>
						</c:forEach>
					</SELECT>
				</div>
			</div>
		</chtml:property>
		<chtml:button destination="/acm/appuser/onmodify" showText="更新"></chtml:button>
	</chtml:command>
	<!--说明   -->	
<div class="sm_info">
	<p class="row_one">说明：</p>
	<p class="other"></p>
	<p class="other"></p>
</div>
</body>
</html>